package tv.youxing.android.custom;

import android.app.ProgressDialog;
import android.content.Context;
import android.os.Bundle;

import tv.youxing.android.R;


/**
 * @Description:自定义对话框
 * @author http://blog.csdn.net/finddreams
 */
public class CustomProgressDialog extends ProgressDialog  {


	Context mContext;

	public CustomProgressDialog(Context context) {
		super(context,R.style.dialog);
		setCanceledOnTouchOutside(false);
		mContext = context;
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		initView();
		initData();
	}

	private void initData() {


	}

	private void initView() {
		setContentView(R.layout.video_post_progress_dialog);
	}


	/**
	 * oncreate 之后
	 */
	@Override
	public void onWindowFocusChanged(boolean hasFocus) {
		// TODO Auto-generated method stub
//		mAnimation.start();
		super.onWindowFocusChanged(hasFocus);
	}


	@Override
	public void show() {
		super.show();
	}
}
